import request from '@/utils/request'

const api_name = `/api/user`

export default {
    login(userInfo) {
        return request({
            url: `${api_name}/login`,
            method: `post`,
            data: userInfo
        })
    },
    sendEmail(email) {
        return request({
            url: `${api_name}/email/${email}`,
            method: `get`
        })
    },
    getUserInfo() {
        return request({
          url: `${api_name}/auth/getUserInfo`,
          method: `get`
        })
    },
        
    saveUserAuah(userAuah) {
        return request({
        url: `${api_name}/auth/userAuth`,
        method: 'post',
        data: userAuah
        })
    }
    
}